import Vue from 'vue'
import VueRouter from 'vue-router'
import admin from "./admin"
import shop from "./shop"
import goods from "./goods"
import askForLeave from "./askForLeave"
import {personner} from "./personner"
Vue.use(VueRouter)

const routes = [
    ...admin,
    ...shop,
    ...goods,
    ...askForLeave,
    ...personner
]

const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
})

export default router
